package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import org.springframework.stereotype.Service;

import java.util.List;

//菜品模块
public interface DishService {
    //分页+条件查询
    Page<Dish> findByPage(Integer pageNum, Integer pageSize,String name);

    //新增菜品
    void save(Dish dish);

    //回显菜品
    Dish findById(Long id);

    //修改菜品
    void updateById(Dish dish);

    //停售
    void updateStatus(Integer status, List<Long> ids);

    //删除
    void deleteBatchIds(List<Long> ids);

    //根据分类查询菜品列表
    List<Dish> findListByCategoryId(Long categoryId);

    //菜品展示
    List<Dish> findList(Long categoryId, Integer status);


    List<Dish> find(String name);
}
